//
//  VisitingInfoModel.m
//  CarLife
//
//  Created by yu on 2018/2/5.
//  Copyright © 2018年 jpas. All rights reserved.
//

#import "VisitingInfoModel.h"
#import "Utility.h"
#import "VisitingInfoModel.h"

@implementation VisitingInfoModel

+ (VisitingInfoModel *)initVisitingInfo
{
    VisitingInfoModel *infoModel = [[VisitingInfoModel alloc] init];
    infoModel.visitTime = [Utility dateToStringFromFormat:@"yyyy-MM-dd HH:mm:ss" withDate:[NSDate date]];
    infoModel.visitorName = [User sharedUser].visitorName.length?[User sharedUser].visitorName:@"";
    infoModel.visitorMobile = [User sharedUser].visitorMobile.length?[User sharedUser].visitorMobile:@"";
    return infoModel;
}

@end
